package com.wobito.common.constants;

import java.io.Serializable;
import java.util.List;

/**
 * @Author Wangbaba
 * @Date 2024/4/25 16:53
 * @Version 1.0
 * 表格分页查询封装对象
 */
public class TableDataInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 总记录数
     */
    private long total;

    /**
     * 列表数据
     */
    private List<?> rows;

    public TableDataInfo() {
    }

    public TableDataInfo(long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<?> getRows() {
        return rows;
    }

    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}
